package com.luoran.car.controller;

import com.luoran.car.domain.SysCarAdvertisements;
import com.luoran.car.service.SysCarAdvertisementsService;
import com.luoran.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/advertisements")
public class AdvertisementsController {

    @Autowired
    private SysCarAdvertisementsService sysCarAdvertisementsService;


    @GetMapping("getAdvertisementsList")
    public AjaxResult getAdvertisementsList(SysCarAdvertisements advertisements){
        List<SysCarAdvertisements> list = sysCarAdvertisementsService.getAdvertisementsList(advertisements);
        return AjaxResult.success(list);
    }
}
